Foxgent BillSoft Update System
==============================

Offline update:
  1. Build the update package with scripts\build-app-update-package.ps1.
  2. Give dist\app-update.zip to the client.
  3. Put app-update.zip in one of these folders:
     - Installed folder next to EXE: updates\app-update.zip
     - User update folder: %LocalAppData%\FoxgentBillSoft\Updates\app-update.zip
  4. Restart Foxgent BillSoft. The update applies before the software opens.

Online update:
  1. Upload dist\app-update.zip and dist\update-manifest.json to your server.
  2. Open app\update-config.json.
  3. Set manifestUrl to your uploaded update-manifest.json URL.
  4. Restart Foxgent BillSoft. Newer versions download and apply automatically.

Default online manifest URL:
  https://foxgent.in/foxgent-billsoft/update-manifest.json

Manifest example:
  {
    "version": "2026.06.24.2",
    "url": "https://your-domain.com/foxgent-billsoft/app-update.zip",
    "sha256": "PUT_SHA256_HERE",
    "notes": "Invoice and print updates"
  }

Important:
  - The update package updates the app folder only.
  - If launcher or setup EXE code changes, rebuild and install the new setup.
  - The updater writes update-log.txt next to Foxgent BillSoft.exe.
